#!/usr/bin/env python
# -*-coding:utf-8-*-
# File    : liyuqi.py
# Date    : 2021-02-03
# Author  : Tom.Lee
import random

def generate_vcode(n:int):
    all_chars = [chr(num) for num in range(65,91)]
    print(all_chars)
    code = ''
    for _ in range(n):
        code += random.choice(all_chars)
    return code

print(generate_vcode(4))